package com.gdglc.spring.biz.impl.auth;

import java.util.List;

import com.gdglc.spring.biz.auth.UserroleBiz;
import com.y2.authprj.bean.auth.model.UserroleInfo;
import com.y2.authprj.dao.auth.IUserroleInfoMapper;

public class UserroleBizImpl implements UserroleBiz{
	
	private IUserroleInfoMapper mapper;
	
	
	public IUserroleInfoMapper getMapper() {
		return mapper;
	}

	public void setMapper(IUserroleInfoMapper mapper) {
		this.mapper = mapper;
	}

	
	
	@Override
	public List<UserroleInfo> findAll() throws Exception {
		// TODO Auto-generated method stub
		return mapper.findAll();
	}

	@Override
	public int add(UserroleInfo user) throws Exception {
		// TODO Auto-generated method stub
		return mapper.add(user);
	}

	@Override
	public int update(UserroleInfo user) throws Exception {
		// TODO Auto-generated method stub
		return mapper.update(user);
	}

	@Override
	public int deleteById(int id) throws Exception {
		// TODO Auto-generated method stub
		return mapper.deleteById(id);
	}

	@Override
	public UserroleInfo UserroleInfoById(int id) throws Exception {
		// TODO Auto-generated method stub
		return mapper.UserroleInfoById(id);
	}

}
